﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FlexFlow.Base.Interface;

namespace FlexFlow.Runtime.Applications
{
    public class ApplicationBucket : IApplicationBucket
    {
        /// <summary>
        /// 向应用程序池注册应用程序
        /// </summary>
        /// <param name="appPoll">
        /// 应用程序池
        /// </param>
        public void RegisterApplication(IApplicationPool appPoll)
        {
            appPoll.RegisterApplication("start", new StartActivityApplication(), actDescription: "开始活动", cssClass: "round");
            appPoll.RegisterApplication("end", new EndActivityApplication(), actDescription: "终止活动", cssClass: "round");
            appPoll.RegisterApplication("task", new TaskApplication(), actDescription: "任务活动");
            appPoll.RegisterApplication("fork", new ForkApplication(), actDescription: "分支活动");
        }
    }
}
